package com.fanrenqiji.modules.sys.dao;


import com.fanrenqiji.common.persistence.BaseDao;
import com.fanrenqiji.common.persistence.BaseDaoImpl;
import com.fanrenqiji.modules.sys.entity.Notify;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

public interface NotifyDao extends NotifyDaoCustom,
        CrudRepository<Notify, Long> {
	@Modifying
	@Query("update Notify set delFlag='" + Notify.DEL_FLAG_DELETE
			+ "' where id = ?1 ")
	void deleteById(Long id);
}

interface NotifyDaoCustom extends BaseDao<Notify> {
}

@Repository
class NotifyDaoImpl extends BaseDaoImpl<Notify> implements NotifyDaoCustom {

}